package com.ddpt.platform.common.base;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

/**
 * 基类
 */
@Data
public class BizEntity extends BaseEntity{

    /**
     * 主键
     */
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;

    /**
     * 商户id
     */
    @TableField("merchant_id")
    private Long merchantId;

    /**
     * 创建时间
     */
    @TableField(value = "create_time",fill = FieldFill.INSERT)
    private Long createTime;

    /**
     * 修改时间
     */
    @TableField(value = "update_time",fill = FieldFill.INSERT_UPDATE)
    private Long updateTime;

    @TableField(exist = false)
    private Long createUserId;

    @TableField(exist = false)
    private String createUserName;

    @TableField(exist = false)
    private Long insId;

    @TableField(exist = false)
    private String insName;

    /**
     * 逻辑删除状态 0-未删除  1-已删除
     */
    @TableField("deleted")
    private Integer deleted;
}
